<?php
session_start();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Bán laptop online</title>
<link href="style/cs1.css" rel="stylesheet" type="text/css" />
<SCRIPT language=JavaScript>
					function tS(){ x=new Date(); x.setTime(x.getTime()); return x; } 
					function lZ(x){ return (x>9)?x:'0'+x; } 
					function tH(x){ if(x==0){ x=12; } return (x>12)?x-=12:x; } 
					function y2(x){ x=(x<500)?x+1900:x; return String(x).substring(0,4) } 
					function dT(){ if(fr==0){ fr=1; document.write('<span id="tP">'+eval(oT)+'</span>'); } tP.innerText=eval(oT); setTimeout('dT()',1000); } 
					function aP(x){ return (x>11)?'':''; } 
					var dN=new Array('Chủ nhật','Thứ Hai','Thứ Ba','Thứ Tư','Thứ Năm','Thứ Sáu','Thứ Bảy'),mN=new Array('-01','-02','-03','-04','-05','-06','-07','-08','-09','-10','-11','-12'),fr=0,oT="'Hôm nay :'+' '+dN[tS().getDay()]+', '+tS().getDate()+''+mN[tS().getMonth()]+'-'+y2(tS().getYear())+' '+'|'+' '+ tH(tS().getHours())+':'+lZ(tS().getMinutes())+' '+aP(tS().getHours())+''";
				</SCRIPT>

<script>
function SearchSubmit(){
	var valueText=document.getElementById("ten").value;
	if(valueText==""){
		alert("Bạn chưa nhập tên tìm");
		return false;
	}else{
		document.getElementById("searchForm").submit();
	}
	
}

</script>


</head>

<body>
<?php
$act = $_GET["act"];
$idlaptop = $_GET["idlaptop"];
$idhang = $_GET["idhang"];
?>

<div id="khung">
  <div id="header">    
    	<div id="ngaythang">
        <SCRIPT language=JavaScript>dT();</SCRIPT>
        </div><!--ngaythang-->
       	<div id="timkiem">
       	  <form id="searchForm" name="searchForm" method="get" action="">
        <input name="act" type="hidden" value="timkiem" />
        <input name="ten" type="text" class="onhaptim" id="ten" placeholder="Tìm kiếm" value="<?php  echo $_GET["ten"];   ?>" />&nbsp;
        <a href="javascript:void(0);" onclick="SearchSubmit();"></a> 
          </form>


        </div><!--timkiem-->       
    </div><!--header-->
    <div id="menu">
    	<ul>
        	<li style="color:#FFFF00"><a href="index.php">Trang chủ</a></li>
            <li><a href="index.php?act=gt">Giới thiệu</a></li>
            <li><a href="index.php?act=gh">Giỏ hàng</a></li>          
            <li><a href="index.php?act=bg">Bảng giá</a></li>
            <li><a href="index.php?act=dgdi">Đường đi</a></li>
            <li><a href="index.php?act=lh">Liên hệ</a></li>
        
        </ul>    
    </div><!--menu-->
    <div id="main">
    	<div id="left_main">
       	<?php 
		include("web/left.php"); 
		?>
        </div><!--left_main-->
        <div id="right_main">
       	<?php
		include("web/right.php");
		?>
        </div><!--right_main-->
        <div id="center_main">
     	<?php 
		if($act=="" && $idlaptop=="" && $idhang=="")
		{
			?>
        	<div id="liveshow">
            <?php
			include("web/slideshow.php");
			?>
            </div><!--liveshow-->
        <?php
		}
		?>
            <div id="sankhau">
         	<?php 
			include("web/sankhau.php");
			?>
            </div><!--sankhau-->
        
        </div><!--center_main-->
    
    </div><!--main-->
    <?php 
	if($act=="" && $idlaptop=="" && $idhang=="")
	
		?>
    <div id="footer">
    Design by Văn Bình - Anh Phước - Trung Hiếu @Copyright
    </div><!--footer-->
</div><!--khung-->
</body>
</html>